package com.xs.mcpserver.gitlab.model;


import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 评论结果
 */
@Data
@NoArgsConstructor
public class CommentResult {
    private Long id;
    private String content;
    private String filePath;
    private Integer lineNumber;
    private Boolean success;
    private String errorMessage;

    public CommentResult(Long id, String content, String filePath, Integer lineNumber, Boolean success) {
        this.id = id;
        this.content = content;
        this.filePath = filePath;
        this.lineNumber = lineNumber;
        this.success = success;
    }

    public CommentResult(Long id, String content, String filePath, Integer lineNumber, Boolean success, String errorMessage) {
        this(id, content, filePath, lineNumber, success);
        this.errorMessage = errorMessage;
    }
}
